<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. Copyright 2010 Virtual Stake, Inc. Visit http://www.wptwin.net/license.html for additional information. */

ini_set('session.bug_compat_42',0);
ini_set('session.bug_compat_warn',0);
error_reporting(0);
set_time_limit(300);
$IIIIIIIIIIlI = "wptwinfile-sql";
$IIIIIIIIIIll = "wptwinfile-tableprefix";
$IIIIIIIIIIl1 = "wptwinfile-sourceurl";
$IIIIIIIIII1I = "wptwinfile-htaccess";
$IIIIIIIIII1l = "wptwinfile-oldpath";
$IIIIIIIIII11 = "wptwin-";
$IIIIIIIIIlII = 9;
$IIIIIIIIIlIl = "wptwin.php";
$IIIIIIIIIlI1 = "2.00";
$IIIIIIIIIllI = "200";
$errors = array();
if (!file_exists('wp-blog-header.php') ||!file_exists('wp-config.php')) {
displayErrorMenu("This script must be placed at the root of a valid WordPress installation.  Please install WordPress via cPanel &rarr; Fantastico and then run this script again.");
exit();
}
$IIIIIIIIIll1 = exec("echo test");
if ($IIIIIIIIIll1 != 'test') {
displayErrorMenu('Your host does not allow the use of the system() and exec() functions.  The script cannot continue.  Please contact our <a href="http://anonym.to?http://wptwin.net/support/">Help Desk</a> for additional information.');
exit();
}
if (version_compare(PHP_VERSION,'5.0.0','<')) {
$IIIIIIIIIl11 = "true";
$IIIIIIIII1II = $IIIIIIIII1II .'<div style="padding:10px; padding-bottom:20px;border: 2px dashed; width:480px; margin:auto;"> <span style="color:red;"><b>PHP Version Error</b></span><br /> <b>PHP Version 5 required.  You are running version: '.PHP_VERSION .'</b></span><p /><b><u>Background Information</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">Although most hosting providers support PHP version 5, your server may be configured to use an older version by default.  In most cases, you can change the default setting via cPanel.  However, doing so may affect other application that require the older version of PHP.  Therefore, it is safer to override the default PHP version on a per directory basis, as shown below.  If you do not have any applications that require the older version of PHP configured as the default, it is strongly recommended you change the default setting to PHP 5 or later.  Please contact your hosting provider with questions about PHP version changes for your account.</div><p /><b><u>Possbile Fix: Override PHP Version for This Application</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">Create a .htaccess file in the directory with the following two lines then reload this page:</div><div style="text-align:left;padding:20px;margin-left:20px;margin-right:20px;background-color:#E3E3E3">AddType application/x-httpd-php5 .php<br />AddHandler application/x-httpd-php5 .php<br /></div><div style="text-align:left;margin-top:20px;">If this does not fix the problem, please contact your hosting provider and ask them how to enable PHP version 5 or later on your web server.</div></div><p />';
}
if(ini_get('safe_mode')) {
$IIIIIIIIIl11 = "true";
$IIIIIIIII1II = $IIIIIIIII1II .'<div style="padding:10px; padding-bottom:20px;border: 2px dashed; width:480px; margin:auto;"> <span style="color:red;"><b>PHP Safe Mode</b></span><br /> <b>Your server is configured with PHP Safe Mode On.  This application cannot run with Safe Mode On.</b></span><p /><b><u>Background Information</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">The following is an excerpt from the PHP Documentation page for "Safe Mode:"<p /><div style="text-align:left;padding:20px;margin-left:20px;margin-right:20px;background-color:#E3E3E3">The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level...<br /></div><p />Safe Mode has been removed from PHP version 6 and above.  For complete details on Safe Mode, see the <a href="http://us.php.net/manual/en/features.safe-mode.php" target="_blank">PHP Safe Mode Documentation</a></div><p /><b><u>Possbile Fix: Implement suPHP Instead</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">The preferred method of for implementing PHP security in shared environments is by using suPHP.  Please ask your hosting provider about how to enable suPHP for your account.</div></div><p />';
}
touch("wpttestpermission.php") or $IIIIIIIII1lI = "true";
unlink("wpttestpermission.php") or $IIIIIIIII1lI = "true";
if ($IIIIIIIII1lI == "true") {
$IIIIIIIIIl11 = "true";
$IIIIIIIII1II = $IIIIIIIII1II .'<div style="padding:10px; padding-bottom:20px;border: 2px dashed; width:480px; margin:auto;"> <span style="color:red;"><b>Insufficient Permissions</b></span><br /> <b>Your server configuration will not allow this application to function properly due to insufficient file permissions.</b></span><p /><b><u>Background Information</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">Most shared hosting servers are configured with a PHP security module called <b>suPHP</b>, which allows scripts to execute with the permissions of the file owner.<p />Most VPS and Dedicated Servers are not configured with suPHP. This is because they are more secure in nature.  In a shared hosting environment, many users run scripts from a single server, and it is therefore critical to protect one user\'s files from another user\'s scripts.  Since Dedicated and VPS server are not usually shared by more than one company or user, suPHP is not required, however, it does cause problems for this application.</div><p /><b><u>Possbile Fix 1: Implement suPHP</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">If you are running in a shared hosting environment (your typical inexpensive service), this is definitely what you should do.  Please ask your hosting provider about how to enable suPHP for your account.<p /> In a Dedicated Server or VPS environment, this is also a good option, and you can ask your hosting provider to help you install and configure suPHP, however, the next solution will be much easier to implement.<p /></div><b><u>Possbile Fix 2: Change Directory & File Ownership</u></b></br><p /><div style="text-align:left;margin-bottom:15px;">For security reasons, you are strongly discouraged from implementing this solution in a shared hosting environment.<p />In a Dedicated Server or VPS environment, this is not an issue and this solution can be safely implemented.<p />Solution:<p /><ol><li>Change the ownership of the folder recursively for this domain to the user the web server runs as (typically "nobody").  You can ask your hosting provider or system administrator how to do this.</li></ol></div></div><p />';
}
if ($IIIIIIIIIl11 == "true") {
displayErrorMenu($IIIIIIIII1II);
exit();
}
require('./wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
global $wpdb;
$IIIIIIIII1l1 = DB_HOST;
$IIIIIIIII11I = DB_USER;
$IIIIIIIII11l = DB_PASSWORD;
$IIIIIIIII111 = DB_NAME;
if ($table_prefix == '') {
$table_prefix = 'wp_';
}
if (!current_user_can('manage_options')) {
displayErrorMenu('</p>To create your clone, your must be logged into WordPress with an Administrator account.  <a href="'.get_option('siteurl').'/wp-login.php?redirect_to='.htmlentities(get_option('siteurl') .'/wptwin.php') .'">Click here</a> to proceed.</p>',false);
exit();
}
if (!empty($errors)) {
echo "<ul class='errors'>";
foreach ($errors as $IIIIIIIIlIIl) {
echo "<li>{$IIIIIIIIlIIl}</li>";
}
echo "</ul>";
exit;
}
if (stristr(PHP_OS,'WIN') &&!(stristr(PHP_OS,'Darwin'))) {
define("DS","\\");
}else {
define("DS","/");
}
$IIIIIIIIlIlI = new ZipUtils();
$IIIIIIIIlIll = dirname($_SERVER['SCRIPT_FILENAME']) .DS;
$IIIIIIIIlI1I = get_bloginfo('name');
$IIIIIIIIlI1l = get_bloginfo('url');
$IIIIIIIIlI11 = str_replace(' ','_',$IIIIIIIIlI1I);
$IIIIIIIIlI11 = str_replace('.','~',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('|','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('*','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('?','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('>','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('<','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('/','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('\\','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace("'",'_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('"','_',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('&#039;','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace(';','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('#','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('&','',$IIIIIIIIlI11);
$IIIIIIIIlI11 = str_replace('!','',$IIIIIIIIlI11);
if ($_REQUEST['mode'] == 'clone') {
$IIIIIIIIllII = $IIIIIIIIlIll.$IIIIIIIIIIlI;
$IIIIIIIIllIl = "mysqldump --opt -h $IIIIIIIII1l1 -u '$IIIIIIIII11I' --password='$IIIIIIIII11l' $IIIIIIIII111 > {$IIIIIIIIllII}";
system($IIIIIIIIllIl);
if (file_exists(".htaccess")) {
copy($IIIIIIIIlIll.'.htaccess',$IIIIIIIIII1I);
}
$IIIIIIIIllll = $IIIIIIIIlIll.$IIIIIIIIIIll;
$IIIIIIIIlll1 = $IIIIIIIIlIll.$IIIIIIIIIIl1;
$IIIIIIIIll1I = fopen($IIIIIIIIII1l,'w');
fwrite($IIIIIIIIll1I,$IIIIIIIIlIll);
fclose($IIIIIIIIll1I);
$IIIIIIIIll1I = fopen($IIIIIIIIllll,'w');
fwrite($IIIIIIIIll1I,$table_prefix);
fclose($IIIIIIIIll1I);
$IIIIIIIIll1I = fopen($IIIIIIIIlll1,'w');
fwrite($IIIIIIIIll1I,$IIIIIIIIlI1l);
fclose($IIIIIIIIll1I);
$IIIIIIIIl1Il = $IIIIIIIIII11 .$IIIIIIIIlI11."-".date('Y-m-d-His') .".wpt";
$IIIIIIIIl1lI = $IIIIIIIIlIll.$IIIIIIIIl1Il;
$IIIIIIIIl1ll = array();
$IIIIIIIIll1I = opendir($IIIIIIIIlIll);
while (false !== ($IIIIIIIIl11I = readdir($IIIIIIIIll1I))) {
if ($IIIIIIIIl11I != "."&&$IIIIIIIIl11I != ".."&&strstr($IIIIIIIIl11I,$IIIIIIIIII11)) {
$IIIIIIIIl1ll[] = $IIIIIIIIl11I;
}
}
$IIIIIIIIl1ll[] = "wp-config.php";
$IIIIIIIIl1ll[] = "wptwin.php";
$IIIIIIIIl1ll[] = "wptwindeploy.php";
$IIIIIIIIl1ll[] = "error_log";
if ($_REQUEST['CloneAllFiles'] == "yes") {
$IIIIIIII1IIl = $IIIIIIIIlIlI->zipOnLinux($IIIIIIIIlIll,$IIIIIIIIl1lI,array('excludeList'=>$IIIIIIIIl1ll));
}else {
$IIIIIIII1IIl = $IIIIIIIIlIlI->zipOnLinuxModified($IIIIIIIIlIll,$IIIIIIIIl1lI,array('excludeList'=>$IIIIIIIIl1ll));
}
if (file_exists($IIIIIIIIIIlI)) {
unlink($IIIIIIIIIIlI);
}
if (file_exists($IIIIIIIIIIll)) {
unlink($IIIIIIIIIIll);
}
if (file_exists($IIIIIIIIIIl1)) {
unlink($IIIIIIIIIIl1);
}
if (file_exists($IIIIIIIIII1I)) {
unlink($IIIIIIIIII1I);
}
if (file_exists($IIIIIIIIII1l)) {
unlink($IIIIIIIIII1l);
}
header( 'Location: '.$IIIIIIIIIlIl);
}else if ($_REQUEST['mode'] == 'olddownload') {
}else if ($_POST['mode'] == 'deploy-choose') {
}
;echo '';
if (empty($_REQUEST['mode'])) {
displayMenu();
}
function readfile_chunked($filename,$IIIIIIII1Il1 = TRUE) {
define('CHUNK_SIZE',1024*1024);
$IIIIIIII1I1l = '';
$IIIIIIII1I11 =0;
$IIIIIIIIll1I = fopen($filename,'rb');
if ($IIIIIIIIll1I === false) {
return false;
}
while (!feof($IIIIIIIIll1I)) {
$IIIIIIII1I1l = fread($IIIIIIIIll1I,CHUNK_SIZE);
echo $IIIIIIII1I1l;
ob_flush();
flush();
if ($IIIIIIII1Il1) {
$IIIIIIII1I11 += strlen($IIIIIIII1I1l);
}
}
$IIIIIIII1lll = fclose($IIIIIIIIll1I);
if ($IIIIIIII1Il1 &&$IIIIIIII1lll) {
return $IIIIIIII1I11;
}
return $IIIIIIII1lll;
}
function displayMenu() {
global $IIIIIIIIIlI1;
global $IIIIIIIIIlIl;
global $IIIIIIIIII11;
global $IIIIIIIIlIll;
if ($_REQUEST['function'] == "delete-clone"&&$_REQUEST['filename'] != "") {
unlink($_REQUEST['filename']);
}
$IIIIIIII1l1l = array();
$IIIIIIIIll1I = opendir($IIIIIIIIlIll);
while (false !== ($IIIIIIIIl11I = readdir($IIIIIIIIll1I))) {
if ($IIIIIIIIl11I != "."&&$IIIIIIIIl11I != ".."&&strstr($IIIIIIIIl11I,$IIIIIIIIII11)) {
$IIIIIIII1l1l[] = $IIIIIIIIl11I;
}
}
;echo '

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WP Twin</title>
<meta name="robots" content="noindex,nofollow" />
<style type="text/css">
* {
  margin: 0;
  padding: 0;
  }

h1, h2, h3, h4 {
	font-weight: bold;
	text-align: center;
	font-family:verdana, arial;
	letter-spacing:-1px;
	text-transform: capitalize;
}

h1 {
	font-size:28px;
	line-height:34px;
	text-align:center;
	color:#000000;
	margin-bottom:24px;
		
}

h2 {
	font-size:24px;
		line-height:28px;
	color:#990000;
	margin-bottom:20px;

}

h3 {
	font-size: 20px;
    line-height:27px;
	font-weight: bold;
	margin: 0;
	color:#000000;
	margin-bottom:20px;

}
h4 {
	font-size:15px;
	margin:0;
margin-left:auto;
margin-right:auto;
margin-bottom:20px;
color:#990000;
}


body {
  position: relative; /* Fixes browser resizing bug in IE6 */
  margin: auto;
  
  text-align: center; /* IE Centering Technique */
  background: #bebebe;
  }

p {
margin-bottom:20px;
}

#wrapper {
  text-align: left; /* IE Centering Technique */
  }



#header {
  margin-top: 20px;
  padding: 0 0 0 0; 
  }


#underheader {
  clear: both;
  background: #bebebe;
  height:124px;
  width: 921px; /* Overrides miscalculation in IE6; ignored by other browsers. */
  margin: auto;
  text-align:center;


  }

/* Main content */

#main {
 width: 871px;
 margin: -1px auto 0px auto;
 padding: 0 25px 5px 25px;
 background:#bebebe;
 }

#contentwrapper {
  float: left;
  width: 520px;
    font-size:16px;
	line-height:21px;
  font-family: Arial, Trebuchet MS, sans-serif;
  }

#contentwrapperright {
  float: right;
  width: 340px;  
  font-size: 12pt;
  color: #9E1B1B;
  }

#content {
  }

#content .pageTitle {
  padding: 5px 0px 0 10px;
  font-size: 14pt;
  color: #9E1B1B;
  }



.post {
  margin: 50px 0 25px 22px;	

  }

/* content Right */


#contentright {
  font-size: 11pt;
  color: #9E1B1B;
  margin-right: 20px;
  font-family:tahoma, georgia, verdana;
  }

#contentright .pageTitle {
  padding: 5px 10px 0 10px;

  }



.postright {
  margin: 20px 0 25px 22px;
  }


/* News */

#news {
width:299;
}

.newstop {
  background:#bebebe;
  height:127px;
  }


.newsmid {
  background:#bebebe;
  }


.newsmid p{
margin-bottom:10px;
padding-left:24px;
padding-right:39px;
  }
  .newsbottom {
  background:#bebebe;
    height:53px;
  }


/* Footer */

#footer {
  clear: both;
  width: 871px; /* Overrides miscalculation in IE6; ignored by other browsers. */
  margin: auto;
  padding: 0 25px 35px 25px;
    background:#bebebe;
  }

#footer p {
  padding: 0;
  font-size: 8pt;
  color: #000;
  text-align: center;
  }

#footer a {
  color: #B95A5A;
  }

#footer a:hover {
  color: #fff;
  }

#credits {
  clear: both;
  margin: 0 auto;
  line-height: 19px;
  }


/* Extras */

.cleared {
  clear: both;
  }

.left {
  float:left;
  }

.right {
  float:right;
  }




li {
   margin:18px;
   margin-bottom:25px;
   margin-right:35px;
   margin-left:60px;
}

.highlight {
	background-color:yellow;
	color:black;
}


.img-right {
float: right;
margin-left:20px;
}


.img-left {
float: left;
margin-right:20px;
}

.afftext {
	font-family: georgia, tahoma, verdana;
	font-size:12px;
	font-weight:bold;
}

.signup {
	float: right;
	font-size:16px;
	font-weight:bold;
}

blockquote {
	margin-left:auto;
	margin-right:auto;
	width:270px;
	padding:10px;
	background-color:#EBE9EA;
	border-top: #000 solid 1px;
	border-left:#000 solid 1px;
	border-right:#000 solid 1px;
	border-bottom:#000 solid 1px;	
}

blockquote h1 {
	color:#990000;
	font-size:17px;
	margin-left:5%;
	margin-right:5%;
	line-height:23px;
	margin-bottom:20px;
}


blockquote p, td{
	font-family:times, verdana, arial;
	font-size:14px;
	margin-left: 15px;
	line-height:18px;
}




</style>

</head>

<body>
<div id="wrapper">
<div id="underheader">
</div><!-- Closes underHeader -->
<div id="main">
<div id="contentwrapper">

<div id="content">
<div class="post">
<div class="postContent"><p>&nbsp;</p><p>
<!-- start sales copy here -->

<H1>Create Your Clone! </H1>
<p>
To create your clone, follow these instructions...</p>
<P>
<OL>
	<li>Choose Cloning Option
			<p>
				<form method="post" action="';echo $IIIIIIIIIlIl;;echo '">
					<p style="font-size: 12px;">
					<input type="checkbox" name="CloneAllFiles" value="yes"> <span class="deployoptionsment">Include Non-WordPress Folders</span>
					<br />&nbsp;<br /><i>Note: Selecting this option while cloning a blog on the Primary Domain will also include all Add-On domain files and folders in the clone, and will copy these to files and folders to the destination when deploying the clone. <b>This is NOT recommended</b> for a Primary Domain if you also have Add-On domains configured. <b>If you are not sure what to do, leave this unchecked.</b></i>
					</p>
	<LI>Click The Button Below
			<p>
					<!-- Delete Cloner Script Afterwards (Recommended) <input type="checkbox" name="delete_cloner" value="yes" checked> -->
					<p />
					<input type="hidden" name="mode" value="clone">
					<input type="submit" name="makeclone" value="Click to Clone this Site">
				</form>
			</p>
	<LI>Download File to Your Computer Then Delete Clone
	
';
if (!(empty($IIIIIIII1l1l))) {
echo "<p>";
foreach ($IIIIIIII1l1l as $IIIIIIII1l11) {
$IIIIIIII11II = explode('-',$IIIIIIII1l11 );
echo "<table><tr><td align='center' valign='top'><a href='{$IIIIIIII1l11}'>Download: ".$IIIIIIII11II[2] ."-".$IIIIIIII11II[3] ."-".$IIIIIIII11II[4] ." ".substr($IIIIIIII11II[5],0,2) .":".substr($IIIIIIII11II[5],2,2)  .":".substr($IIIIIIII11II[5],4,2) ."</a>&nbsp;&nbsp;&nbsp;</td><td align='center' valign='top'> 
			<form method='post' action='".$IIIIIIIIIlIl ."' enctype='multipart/form-data'>
			<input name='function' value='delete-clone' type='hidden' />
			<input name='filename' type='hidden' value='".$IIIIIIII1l11 ."' />
			<input type='submit' value='Delete This Clone' /><br />\n
			</form></td></tr></table>";
}
echo "</p>";
}
;echo '
	
	<LI>Install WordPress on your desired Domain and/or directory using cPanel (Fantastico)
	<LI>Upload <b>wptwindeploy.php</b> and <b>clone file</b> to the root directory of your new WordPress installation
	<LI>Access <b>wptwindeploy.php</b> with your web browser and follow the on-screen instructions

</OL>

<P>
<span class=highlight>Special Note:</span> When you deploy your clone, the username and password will be exactly the same as it is on the source site. The only settings that will not be overridden on the clone are the Site Name and Descripton (which you define in Fantastico during the installation). You can change your password after deploying the clone by accessing the WordPress Admin interface.</p>
<P> </p>

';
echo '<style media="screen" type="text/css">';
echo '#affinfotext {display:none}';
echo '</style>';
echo '<div id="affinfotext">';
// $IIIIIIII11lI = getRemoteHTML("http://cdn.wptwin.net/remote/affinfodiv.php");
// echo $IIIIIIII11lI;
echo '</div>';
;echo '


</div> 
</div> 
</div>
</div> <!-- Closes Left Content -->


<!-- start right content -->
<div id="contentwrapperright"><div id="contentright">


<div class="postright">

<div class="postContentright">

';
echo '<style media="screen" type="text/css">';
echo '#news {display:none}';
echo '</style>';
echo '<div id="news">';
// $IIIIIIII11lI = getRemoteHTML("http://cdn.wptwin.net/remote/newsdiv.php");
// echo $IIIIIIII11lI;
echo '</div>';
;echo '
</div> 
</div> 
</div>
</div> 


<!-- end right content -->
<div class="cleared"></div>
</div> <!-- Closes Main -->
<div id="abovefooter">
</div>
<div id="footer">
<p class="style3" align="center">WPTwin Version: ';echo $IIIIIIIIIlI1;;echo ' <b>-</b> WPTwin.net <b>-</b> For Support Visit our <a href="http://anonym.to?http://wptwin.net/support/">Help Desk</a> or Call (309) 517-0655<br />2169 Glen Oaks Dr., Coralville, IA 52241</p>
</div>
 </body>
</HTML>

	';
}
function displayErrorMenu($IIIIIIII11l1,$IIIIIIII111I = true) {
global $IIIIIIIIIlI1;
global $IIIIIIIIIlIl;
global $IIIIIIIIII11;
global $IIIIIIIIlIll;
;echo '

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WP Twin</title>
<meta name="robots" content="noindex,nofollow" />
<style type="text/css">
* {
  margin: 0;
  padding: 0;
  }

h1, h2, h3, h4 {
	font-weight: bold;
	text-align: center;
	font-family:verdana, arial;
	letter-spacing:-1px;
	text-transform: capitalize;
}

h1 {
	font-size:28px;
	line-height:34px;
	text-align:center;
	color:#000000;
	margin-bottom:24px;
		
}

h2 {
	font-size:24px;
		line-height:28px;
	color:#990000;
	margin-bottom:20px;

}

h3 {
	font-size: 20px;
    line-height:27px;
	font-weight: bold;
	margin: 0;
	color:#000000;
	margin-bottom:20px;

}
h4 {
	font-size:15px;
	margin:0;
margin-left:auto;
margin-right:auto;
margin-bottom:20px;
color:#990000;
}


body {
  position: relative; /* Fixes browser resizing bug in IE6 */
  margin: auto;
  
  text-align: center; /* IE Centering Technique */
  background: #101014 url(http://i55.tinypic.com/n3rb4n.png) repeat top left;
  }

p {
margin-bottom:20px;
}

#wrapper {
  text-align: left; /* IE Centering Technique */
  }



#header {
  margin-top: 20px;
  padding: 0 0 0 0; 
  }


#underheader {
  clear: both;
  background: url(http://i54.tinypic.com/2llilp0.png) center top no-repeat;
  height:124px;
  width: 921px; /* Overrides miscalculation in IE6; ignored by other browsers. */
  margin: auto;
  text-align:center;


  }

/* Main content */

#main {
 width: 871px;
 margin: -1px auto 0px auto;
 padding: 0 25px 5px 25px;
 background:url(http://i56.tinypic.com/250m1yw.png) repeat-y;
 }

#contentwrapper {
  float: left;
  width: 520px;
    font-size:16px;
	line-height:21px;
  font-family: Arial, Trebuchet MS, sans-serif;
  }

#contentwrapperright {
  float: right;
  width: 340px;  
  font-size: 12pt;
  color: #9E1B1B;
  }

#content {
  }

#content .pageTitle {
  padding: 5px 0px 0 10px;
  font-size: 14pt;
  color: #9E1B1B;
  }



.post {
  margin: 50px 0 25px 22px;	

  }

/* content Right */


#contentright {
  font-size: 11pt;
  color: #9E1B1B;
  margin-right: 20px;
  font-family:tahoma, georgia, verdana;
  }

#contentright .pageTitle {
  padding: 5px 10px 0 10px;

  }



.postright {
  margin: 20px 0 25px 22px;
  }


/* News */

#news {
width:299;
}

.newstop {
  background:url(http://i52.tinypic.com/xlfmo9.png) no-repeat;
  height:127px;
  }


.newsmid {
  background:url(http://i53.tinypic.com/2ih5imw.png) repeat-y;
  }


.newsmid p{
margin-bottom:10px;
padding-left:24px;
padding-right:39px;
  }
  .newsbottom {
  background:url(http://i53.tinypic.com/2gxfvxe.png) no-repeat;
    height:53px;
  }


/* Footer */

#footer {
  clear: both;
  width: 871px; /* Overrides miscalculation in IE6; ignored by other browsers. */
  margin: auto;
  padding: 0 25px 35px 25px;
    background:url(http://i54.tinypic.com/2j362bp.png) no-repeat;
  }

#footer p {
  padding: 0;
  font-size: 8pt;
  color: #000;
  text-align: center;
  }

#footer a {
  color: #B95A5A;
  }

#footer a:hover {
  color: #fff;
  }

#credits {
  clear: both;
  margin: 0 auto;
  line-height: 19px;
  }


/* Extras */

.cleared {
  clear: both;
  }

.left {
  float:left;
  }

.right {
  float:right;
  }




li {
   margin:18px;
   margin-bottom:25px;
   margin-right:35px;
   margin-left:60px;
}

.highlight {
	background-color:yellow;
	color:black;
}


.img-right {
float: right;
margin-left:20px;
}


.img-left {
float: left;
margin-right:20px;
}

.afftext {
	font-family: georgia, tahoma, verdana;
	font-size:12px;
	font-weight:bold;
}

.signup {
	float: right;
	font-size:16px;
	font-weight:bold;
}

blockquote {
	margin-left:auto;
	margin-right:auto;
	width:270px;
	padding:10px;
	background-color:#EBE9EA;
	border-top: #000 solid 1px;
	border-left:#000 solid 1px;
	border-right:#000 solid 1px;
	border-bottom:#000 solid 1px;	
}

blockquote h1 {
	color:#990000;
	font-size:17px;
	margin-left:5%;
	margin-right:5%;
	line-height:23px;
	margin-bottom:20px;
}


blockquote p, td{
	font-family:times, verdana, arial;
	font-size:14px;
	margin-left: 15px;
	line-height:18px;
}




</style>

</head>

<body>
<div id="wrapper">
<div id="underheader">
</div><!-- Closes underHeader -->
<div id="main">
<div id="contentwrapper">

<div id="content">
<div class="post">
<div class="postContent"><p>&nbsp;</p><p>

';if ($IIIIIIII111I) {;echo '		<h1><font color="red">Error</font></h1>
';}else {;echo '
	<h1>Create Your Clone!</h1>

';};echo '		<p>
		';echo $IIIIIIII11l1;;echo '
</div> 
</div> 
</div>
</div> <!-- Closes Left Content -->

<!-- start right content -->
<div id="contentwrapperright"><div id="contentright">


<div class="postright">

<div class="postContentright">

<!-- News Start -->

';
echo '<style media="screen" type="text/css">';
echo '#news {display:none}';
echo '</style>';
echo '<div id="news">';
// $IIIIIIII11lI = getRemoteHTML("http://cdn.wptwin.net/remote/deploynewsdiv.php?em=".htmlentities($_SESSION['wptwinregemail'])."&ver=".$IIIIIIIIIllI);
// echo $IIIIIIII11lI;
echo '</div>';
;echo '
<!-- News End -->

</div> 
</div> 
</div>
</div> 


<!-- end right content -->
<div class="cleared"></div>
</div> <!-- Closes Main -->
<div id="abovefooter">
</div>
<div id="footer">
<p class="style3" align="center">WPTwin Version: ';echo $IIIIIIIIIlI1;;echo ' <b>-</b> WPTwin.net <b>-</b> For Support Visit our <a href="http://anonym.to?http://wptwin.net/support/">Help Desk</a> or Call (309) 517-0655<br />2169 Glen Oaks Dr., Coralville, IA 52241</p>
</div>
 </BODY>
</HTML>

	';
}
function cleanFiles($IIIIIIII1111 = "") {
global $IIIIIIIIII11;
global $IIIIIIIIIlIl;
global $IIIIIIIIIlII;
if ($IIIIIIII1111 == "") {
$IIIIIIII1111 = dirname($_SERVER['SCRIPT_FILENAME']);
}
if ($IIIIIIIlIIII = opendir($IIIIIIII1111)) {
while (false !== ($IIIIIIIIl11I = readdir($IIIIIIIlIIII))) {
if ($IIIIIIIIl11I != "."&&$IIIIIIIIl11I != "..") {
if (is_dir($IIIIIIII1111 ."/".$IIIIIIIIl11I)) {
cleanFiles($IIIIIIII1111 ."/".$IIIIIIIIl11I);
}else {
if ($IIIIIIIIl11I == ".htaccess"||$IIIIIIIIl11I == "wp-config.php"||$IIIIIIIIl11I == $IIIIIIIIIlIl) {
}else if (substr($IIIIIIIIl11I,0,$IIIIIIIIIlII) == $IIIIIIIIII11 &&substr($IIIIIIIIl11I,-3) == "wpt") {
}else {
unlink($IIIIIIII1111 ."/".$IIIIIIIIl11I);
}
}
}
}
closedir($IIIIIIIlIIII);
}
}
function object_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlIIl1) {
$IIIIIIIlII1I = $IIIIIIIlIIl1;
$IIIIIIIlII1l = false;
if (is_serialized($IIIIIIIlII1I)) {
$IIIIIIIlII11 = unserialize($IIIIIIIlII1I);
if (is_object($IIIIIIIlII11) ||is_array($IIIIIIIlII11)) {
if (is_object($IIIIIIIlII11)) {
foreach($IIIIIIIlII11 as $IIIIIIIlIllI=>$IIIIIIIlIlll) {
$IIIIIIIlII11->$IIIIIIIlIllI = object_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlIlll);
}
}elseif(is_array($IIIIIIIlII11)) {
foreach($IIIIIIIlII11 as $IIIIIIIlIllI=>$IIIIIIIlIlll) {
$IIIIIIIlII11[$IIIIIIIlIllI] = object_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlIlll);
}
}
}
$IIIIIIIlII1I = serialize($IIIIIIIlII11);
}elseif(!is_object($IIIIIIIlII1I) &&!is_array($IIIIIIIlII1I)) {
$IIIIIIIlII1I = str_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlII1I);
}elseif(is_array($IIIIIIIlII1I)) {
foreach($IIIIIIIlII1I as $IIIIIIIlIllI=>$IIIIIIIlIlll) {
$IIIIIIIlII1I[$IIIIIIIlIllI] = object_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlIlll);
}
}elseif(is_object($IIIIIIIlII1I)) {
foreach($IIIIIIIlII1I as $IIIIIIIlIllI=>$IIIIIIIlIlll) {
$IIIIIIIlII1I->$IIIIIIIlIllI = object_replace($IIIIIIIlIIlI,$IIIIIIIlIIll,$IIIIIIIlIlll);
}
}
return $IIIIIIIlII1I;
}
function get_tables() {
if ($IIIIIIIlIl1l) {
$IIIIIIIlIl11 = $IIIIIIIlI1II;
}else {
$IIIIIIIlIl11 = get_table_list();
}
return $IIIIIIIlIl11;
}
function get_table_list() {
global $wpdb;
$IIIIIIIlI1I1 = $wpdb->get_results("SHOW TABLES FROM ".DB_NAME);
$IIIIIIIlI1lI = array();
foreach($IIIIIIIlI1I1 as $IIIIIIIlI1ll) {
$IIIIIIIlI1lI[] = $IIIIIIIlI1ll->{'Tables_in_'.DB_NAME};
}
return $IIIIIIIlI1lI;
}
function getRemoteHTML($IIIIIIIlI11I)
{
$IIIIIIIlI11l = curl_init();
curl_setopt($IIIIIIIlI11l,CURLOPT_URL,$IIIIIIIlI11I);
curl_setopt($IIIIIIIlI11l,CURLOPT_TIMEOUT,3);
curl_setopt($IIIIIIIlI11l,CURLOPT_HEADER,0);
curl_setopt($IIIIIIIlI11l,CURLOPT_RETURNTRANSFER,true);
$IIIIIIIllIIl = curl_exec($IIIIIIIlI11l);
curl_close($IIIIIIIlI11l);
return $IIIIIIIllIIl;
}
class ZipUtils{
function unZip($IIIIIIIllIll,$IIIIIIIIl1lI){
if (stristr(PHP_OS,'WIN')  &&!(stristr(PHP_OS,'Darwin'))) {
$this->unZipOnWindows($IIIIIIIllIll,$IIIIIIIIl1lI);
}else {
$this->unZipOnLinux($IIIIIIIllIll,$IIIIIIIIl1lI);
}
}
function unZipOnWindows($IIIIIIIllIll,$IIIIIIIIl1lI){
$IIIIIIIlllII = strrpos($IIIIIIIllIll,'/');
$IIIIIIIlllI1 = substr($IIIIIIIllIll,0,$IIIIIIIlllII+1);
$IIIIIIIllllI = opendir( $IIIIIIIlllI1 );
$IIIIIIIlllll = pathinfo($IIIIIIIllIll);
if ( strtolower($IIIIIIIlllll['extension']) == 'wpt') {
$zip = new ZipArchive;
$IIIIIIIlll11 = $zip->open($IIIIIIIllIll);
if ($IIIIIIIlll11 === TRUE) {
$zip->extractTo($IIIIIIIIl1lI);
$zip->close();
}
}
closedir( $IIIIIIIllllI );
}
function unZipOnLinux($IIIIIIIllIll,$IIIIIIIIl1lI){
$IIIIIIIlllII = strrpos($IIIIIIIllIll,'/');
$IIIIIIIlllI1 = substr($IIIIIIIllIll,0,$IIIIIIIlllII+1);
$IIIIIIIllllI = opendir($IIIIIIIlllI1);
$IIIIIIIlllll = pathinfo($IIIIIIIllIll);
if ( strtolower($IIIIIIIlllll['extension']) == 'wpt') {
$IIIIIIIIllIl = 'unzip -q -u \''.$IIIIIIIllIll .'\'  -d '.$IIIIIIIIl1lI;
system($IIIIIIIIllIl);
}
closedir($IIIIIIIllllI);
}
function zipOnLinux($IIIIIIIll1lI,$IIIIIIIIl1lI,$IIIIIIIll1ll = array()) {
$IIIIIIII1IIl = false;
$errors = array();
$IIIIIIIll1ll = array_merge(array(
'excludeList'=>array(),
),$IIIIIIIll1ll);
$IIIIIIIll11I = true;
if ($IIIIIIIll11I) {
$IIIIIIIll11l = array();
$IIIIIIIll111 = pathinfo($IIIIIIIll1lI);
$IIIIIIIl1III = pathinfo($IIIIIIIIl1lI);
if (is_file($IIIIIIIll1lI)) {
$IIIIIIIl1II1 = $IIIIIIIll1lI;
$IIIIIIIl1IlI = './'.$IIIIIIIll111['filename'].'.'.$IIIIIIIll111['extension'];
}else {
$IIIIIIIl1II1 = $IIIIIIIll1lI;
$IIIIIIIl1IlI = './';
}
$IIIIIIIIllIl = 'cd '.$IIIIIIIl1II1.';zip -r ';
$IIIIIIIIllIl .= $IIIIIIIl1III['filename'].'.wpt ';
$IIIIIIIIllIl .= $IIIIIIIl1IlI.' ';
if (!empty($IIIIIIIll1ll['excludeList'])) {
$IIIIIIIIllIl .= '-q -x '.implode(' ',$IIIIIIIll1ll['excludeList']);
}
@system($IIIIIIIIllIl);
}else {
$errors['CANNOT_WRITE'] = 'Do not have write permissions for '.dirname($IIIIIIIIl1lI);
}
if (!empty($errors)) {
$IIIIIIII1IIl['errors'] = $errors;
}else {
$IIIIIIII1IIl = true;
}
return $IIIIIIII1IIl;
}
function zipOnLinuxModified($IIIIIIIll1lI,$IIIIIIIIl1lI,$IIIIIIIll1ll = array()) {
$IIIIIIII1IIl = false;
$errors = array();
$IIIIIIIll1ll = array_merge(array(
'excludeList'=>array(),
),$IIIIIIIll1ll);
$IIIIIIIll11I = true;
if ($IIIIIIIll11I) {
$IIIIIIIll11l = array();
$IIIIIIIll111 = pathinfo($IIIIIIIll1lI);
$IIIIIIIl1III = pathinfo($IIIIIIIIl1lI);
if (is_file($IIIIIIIll1lI)) {
$IIIIIIIl1II1 = $IIIIIIIll1lI;
$IIIIIIIl1IlI = './'.$IIIIIIIll111['filename'].'.'.$IIIIIIIll111['extension'];
}else {
$IIIIIIIl1II1 = $IIIIIIIll1lI;
$IIIIIIIl1IlI = './';
}
$IIIIIIIIllIl = 'cd '.$IIIIIIIl1II1.';zip ';
$IIIIIIIIllIl .= $IIIIIIIl1III['filename'].'.wpt ';
$IIIIIIIIllIl .= $IIIIIIIl1IlI.'* ';
if (!empty($IIIIIIIll1ll['excludeList'])) {
$IIIIIIIIllIl .= '-q -x '.implode(' ',$IIIIIIIll1ll['excludeList']);
}
@system($IIIIIIIIllIl);
$IIIIIIIIllIl = 'cd '.$IIIIIIIl1II1.';zip -q -r -u ';
$IIIIIIIIllIl .= $IIIIIIIl1III['filename'].'.wpt ';
$IIIIIIIIllIl .= $IIIIIIIl1IlI.'wp-admin ';
@system($IIIIIIIIllIl);
$IIIIIIIIllIl = 'cd '.$IIIIIIIl1II1.';zip -q -r -u ';
$IIIIIIIIllIl .= $IIIIIIIl1III['filename'].'.wpt ';
$IIIIIIIIllIl .= $IIIIIIIl1IlI.'wp-content ';
@system($IIIIIIIIllIl);
$IIIIIIIIllIl = 'cd '.$IIIIIIIl1II1.';zip -q -r -u ';
$IIIIIIIIllIl .= $IIIIIIIl1III['filename'].'.wpt ';
$IIIIIIIIllIl .= $IIIIIIIl1IlI.'wp-includes ';
@system($IIIIIIIIllIl);
}else {
$errors['CANNOT_WRITE'] = 'Do not have write permissions for '.dirname($IIIIIIIIl1lI);
}
if (!empty($errors)) {
$IIIIIIII1IIl['errors'] = $errors;
}else {
$IIIIIIII1IIl = true;
}
return $IIIIIIII1IIl;
}
}
?>
